package com.tsh.chat.service;

import com.tsh.chat.domain.ChatHistory;
import com.tsh.chat.domain.Personality;
import com.tsh.chat.domain.PromptHistory;

import java.util.List;

public interface PersonalitySimulatorService {
    public int getLastInsertId();

    public List<Personality> getPersonality(int userId);

    public int insertPersonality(Personality personality);

    public int updatePersonality(Personality personality);

    public int deletePersonality(int id);

    public int deletePromptHistoryById(int id);

    public int deletePromptHistoryByUserId(int userId);

    public int insertPromptHistory(int userId, String prompt);

    public int updatePromptHistory(PromptHistory promptHistory);

    public List<PromptHistory> getPromptHistoryByUserId(int userId);

    public List<PromptHistory> getAllPromptHistory();

    public List<ChatHistory> getChatHistoryByUserId(int userId);

    public int insertChatHistory(int user_id, String role, String content);

    public int updateChatHistory(ChatHistory chatHistory);

    public int deleteChatHistoryByUserId(int userId);
}
